Skip to content

Fix dest buffer bounds check in Snappy.uncompress - #734

Open
pprabhala-oss wants to merge 1 commit into
xerial:mainfrom
pprabhala-oss:local/issue-728-uncompress-dest-bounds
Open

pprabhala-oss wants to merge 1 commit into
xerial:mainfrom
pprabhala-oss:local/issue-728-uncompress-dest-bounds

Conversation

@pprabhala-oss

Copy link
Copy Markdown

Throw IllegalArgumentException when the destination is smaller than uncompressedLength() before calling native RawUncompress. Applied to both the byte[] and ByteBuffer overloads.

Fixes #728 (CVE-2026-90559)

@github-actions github-actions Bot added the bug label Sep 16, 2026
Throw IllegalArgumentException when the destination is smaller than
uncompressedLength() before calling native RawUncompress. Applied to
both the byte[] and ByteBuffer overloads.

Fixes xerial#728 (CVE-2026-90559)
@pprabhala-oss
pprabhala-oss force-pushed the local/issue-728-uncompress-dest-bounds branch from 3fc0b26 to 9b58271 Compare September 16, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Off heap OOB Write in ByteBuffer Uncompress

1 participant